<template>
    <div>
        答案：{{Ans}}
    </div>    
</template>>

<script>
import QA from "@/assets/QA"
export default {
    name:"Ans",
    data(){
        return{
            QA:QA,
            Que:"",
            Ans:""
        }
    },
    created(){
        this.Ans=QA[this.$route.params.id].Ans
    },
    watch:{
        "$route"(to){
        this.Ans=QA[this.$route.params.id].Ans
        }
    }
}
</script>>

<style scoped>

</style>>